<?php
$caption = BUtils::T('login_lbl');
$this->pageTitle = Yii::app()->name . ' - ' . $caption;
?>
<div class="container prepend-top append-bottom">
	<div class="span-10 prepend-2">
		
	</div>
	
	<div class="span-10 prepend-1 last">
		<div class="box_white">
		<div class="biz-form">
			<div class="margin">
				<h3><?php echo $caption; ?></h3>
			</div>
			
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

<div class="fieldswrap">
<div class="fields">
	<div class="block">
		<div class="lbl"><?php echo $form->labelEx($model,'email'); ?></div>
		<div class="ipt">
			<?php echo $form->textField($model,'email', array('class'=>'auto')); ?>
			<?php echo $form->error($model,'email'); ?>
		</div>
	</div>
	<div class="block">
		<div class="lbl"><?php echo $form->labelEx($model,'password'); ?></div>
		<div class="ipt">
			<?php echo $form->passwordField($model,'password', array('class'=>'auto')); ?>
			<?php echo $form->error($model,'password'); ?>
		</div>
	</div>
	<div class="inline rememberMe">
		<div class="ipt">
			<?php echo $form->checkBox($model,'rememberMe'); ?>
			<?php echo $form->label($model,'rememberMe'); ?>
			<?php echo $form->error($model,'rememberMe'); ?>
		</div>
	</div>
</div><!-- end of .fields -->
</div><!-- end of .fieldswrap -->
<?php if (Yii::app()->user->hasFlash('error')) { ?>
<div class="fieldswrap" style="background:#fee;">
	<div class="fields"><?php echo Yii::app()->user->getFlash('error'); ?></div>
</div>
<?php } ?>
	<div class="margin actions">
		<?php echo CHtml::submitButton($caption, array('class' => 'button button-huge button-confirm')); ?>
		<?php echo CHtml::link('<span>'.BUtils::T('signup_lbl').'</span>', Yii::app()->createUrl($this->id . '/register'), array('class' => 'button button-huge button-thin button-compliment')); ?>
	</div>

<?php $this->endWidget(); ?>
			
		</div><!-- end of <div class="biz-form"> -->
		</div>
	</div>
</div>